<?php 
class TDataTableRescisaoVagas extends TDataTable
{
    public function __construct($contratoid,$options=array())
    {
        $model = new ViewVagasRescisao();
        $key = 'vagaid';
        $criterio = array();
		$criterio['precondicao'] = "contratoid = $contratoid";	
		
        parent::__construct($model,$key,$criterio,$options);
        $this->addColumnsData(array( 'cpf', 'nome', 'cargo', 'lotacao', 'nucleogestor', 'status', 'salario'));
        $this->addFiltersCombo(array('cargo','lotacao','nucleogestor', 'status'));           
    }
}